/**
 * Created by zhangsong on 2019/9/22.
 */
import { valueUniqueByKey } from '@/utils/utils';

const namespace = 'user';

const state = {
  area: null,
  workerType: null,
  currentUser: {
    name: 'admin',
  },
  menusList: [],
};

const effects = {
  getArea: '',
  getCurrentUser: '',
  listWorkerType: '',
};

const reducers = {
  setState: '',
  saveArea: '',
  saveCurrentUser: '',
  saveWorkerType: '',
};

const subscriptions = {};

valueUniqueByKey(effects);
valueUniqueByKey(reducers);
valueUniqueByKey(subscriptions);
export default {
  Namespace: namespace,
  State: state,
  Effects: effects,
  Reducers: reducers,
  Subscriptions: subscriptions,
};
